package org.luckyjourney.mapper.booking;

import org.apache.ibatis.annotations.Mapper;
import org.luckyjourney.entity.booking.Booking;
import org.luckyjourney.entity.booking.PsychologicalAppointmentRecords;
import org.luckyjourney.entity.booking.dto.BookingDTO;
import org.luckyjourney.entity.booking.vo.BookingVO;
import org.luckyjourney.entity.plan.Plan;
import org.luckyjourney.entity.plan.dto.PlanDTO;
import org.luckyjourney.entity.plan.vo.PlanVO;

import java.util.List;

@Mapper
public interface BookingMapper {
    List<PlanVO> selectPlan(PlanDTO planDTO);

    int insertClick(Booking booking);

    PlanVO selectNumberPeople(PlanDTO planDTO);

    void updateNumberPeople(Plan plan);

    Booking selectClick(Booking booking);

    BookingVO selectPersonal(Booking booking);


    List<BookingVO> selectPage(BookingDTO bookingDTO);

    PlanVO selectPlanId(Integer planId);

    Long selectCount(PlanDTO planDTO);
}
